package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Name DishMapper
 * @Author BaiXin
 * @Date 2022-10-31 14:47
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    /**
     * 根据id（批量）启售/停售菜品
     *
     * @param status 目标状态值
     * @param ids    要操作的菜品id
     * @return 操作结果
     */
    int updateByIds(Integer status, Long[] ids);
}
